package com.qinggeng.project.tool.file.domain;

import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import com.qinggeng.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件存储对象 sys_file
 *
 * @author qinggeng
 * @date 2020-02-11
 */
@Data
public class SysFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getDeleteUrl() {
        return deleteUrl;
    }

    public void setDeleteUrl(String deleteUrl) {
        this.deleteUrl = deleteUrl;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getStorageType() {
        return storageType;
    }

    public void setStorageType(String storageType) {
        this.storageType = storageType;
    }

    /** ID */
    private Long fileId;

    /** 文件真实的名称 */
    @Excel(name = "文件真实的名称")
    private String realName;

    /** 文件名 */
    @Excel(name = "文件名")
    private String name;

    /** 后缀 */
    @Excel(name = "后缀")
    private String suffix;

    /** 路径 */
    @Excel(name = "路径")
    private String path;

    @Excel(name = "删除的URL")
    private String deleteUrl;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 大小 */
    @Excel(name = "大小")
    private String size;

    /** 存储类型 */
    @Excel(name = "存储类型")
    private String storageType;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("name", getName())
            .append("suffix", getSuffix())
            .append("path", getPath())
            .append("type", getType())
            .append("size", getSize())
            .append("storageType", getStorageType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
